﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Housing;
public partial class HouseKeep_ManageApply : System.Web.UI.Page
{
    Apply apply = new Apply();
    protected void Page_Load(object sender, EventArgs e)
    {
        int UserTypeNum = 0;
        if (Session["UserType"] == null)
        {
            Response.Redirect("../Login.aspx");
        }
        if (!IsPostBack)
        {
            DataSet ds = apply.GetApplyListOrderByUserTypeAndStreet(Session["UserType"].ToString(), Session["UserStreet"].ToString());
            gvstreetshow.DataSource = ds;
            gvstreetshow.DataBind();
        }
    }
    protected string GetNavByStep(string state,string noid)
    {
        if (state == "1")
            return "../StreetCenter/PublishApply.aspx?id="+noid;
        else if (state == "2")
            return "../StreetCenter/StreetCheck.aspx?id=" + noid;
        else if (state == "3")
            return "../HouseKeep/AreaCheck.aspx?id=" + noid;
        else if (state == "4")
            return "../GovDepartment/GovernCheck.aspx?id=" + noid;
        else if (state == "5")
            return null;
        else
            return "";
    }
    protected string GetCheckStepName(string state)
    {
        if (state == "1")
            return "公布此申请表";
        else if (state == "2")
            return "街道初审";
        else if (state == "3")
            return "辖区房管所审核";
        else if (state == "4")
            return "民政部门审核";
        else if (state == "5")
            return "待房管中心审核";
        else
            return "";
    }
}
